package com.niit.conteoller;

//import com.niit.pojo.Student;
//import com.niit.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class StudentController {
//    @Autowired
//    private StudentService studentService;
//    @RequestMapping("/index")
//    public String index(){
//        return "index";
//    }
//    @ResponseBody
//    @RequestMapping("/addStudent")
//    public String addStudent(Student student){
//       int num= studentService.addStudent(student);
//        if(num>0)
//            return "success";
//        else
//            return "fail";
//    }
}
